package model


type CoreRole struct {
	ID         uint   		`gorm:"primary_key;AUTO_INCREMENT";json:"id"`
	Name 	   string 		`gorm:"type:varchar(50);not null";json:"name"`
}

type CoreRolePolicy struct {
	ID          uint   		`gorm:"primary_key;AUTO_INCREMENT";json:"id"`
	RoleID      uint		`gorm:"type:bigint(20)";json:"roleId"`
	RoleName 	string 		`gorm:"type:varchar(50);not null";json:"roleName"`
	Name        string 		`gorm:"type:varchar(50);not null";json:"name"`
	Policy   	string 		`gorm:"type:varchar(128);not null";json:"policy"`
}

